import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        mp3Url: '',
        musicDetails: 1,
        // playTime: 0
    },
    mutations: {
        getmp3Url(state,url){
            // console.log(url)
            state.mp3Url = url;
        },
        getmusicDetails(state,musicObj){
            state.musicDetails = musicObj;
        },
        // getPlayTime(state,time){
        //     state.playTime = time;
        // }
    }
})